package com.coding.pojo;

import java.io.Serializable;
import java.util.Objects;

/**
 * (Groupwith)实体类
 *
 * @author makejava
 * @since 2020-07-31 14:33:08
 */
public class Groupwith implements Serializable {
    private static final long serialVersionUID = 409983594135628471L;

    private Integer userId;

    private Integer groupId;

    private String groupTag;

    private String groupTime;

    private String groupMore1;

    private Group group;

    @Override
    public String toString() {
        return "Groupwith{" +
                "userId=" + userId +
                ", groupId=" + groupId +
                ", groupTag='" + groupTag + '\'' +
                ", groupTime='" + groupTime + '\'' +
                ", groupMore1='" + groupMore1 + '\'' +
                ", group=" + group +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Groupwith groupwith = (Groupwith) o;
        return Objects.equals(userId, groupwith.userId) &&
                Objects.equals(groupId, groupwith.groupId) &&
                Objects.equals(groupTag, groupwith.groupTag) &&
                Objects.equals(groupTime, groupwith.groupTime) &&
                Objects.equals(groupMore1, groupwith.groupMore1) &&
                Objects.equals(group, groupwith.group);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, groupId, groupTag, groupTime, groupMore1, group);
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getGroupTag() {
        return groupTag;
    }

    public void setGroupTag(String groupTag) {
        this.groupTag = groupTag;
    }

    public String getGroupTime() {
        return groupTime;
    }

    public void setGroupTime(String groupTime) {
        this.groupTime = groupTime;
    }

    public String getGroupMore1() {
        return groupMore1;
    }

    public void setGroupMore1(String groupMore1) {
        this.groupMore1 = groupMore1;
    }

}